package com.luo.partner.dao.model;

import java.io.Serializable;

public class TabDomain implements Serializable {
    private String domainName;

    private static final long serialVersionUID = 1L;

    public String getDomainName() {
        return domainName;
    }

    public void setDomainName(String domainName) {
        this.domainName = domainName;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", domainName=").append(domainName);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        TabDomain other = (TabDomain) that;
        return (this.getDomainName() == null ? other.getDomainName() == null : this.getDomainName().equals(other.getDomainName()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getDomainName() == null) ? 0 : getDomainName().hashCode());
        return result;
    }
}